﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SharpArch.NHibernate;
using System.Web.Security;
using ADIGRE.Domain;

namespace ADIGRE.Infrastructure.Queries.Receita
{
    public class ReceitaQuery : NHibernateQuery<Domain.Receita>, IReceitaQuery 
    {
        public override IList<Domain.Receita> ExecuteQuery()
        {
            throw new NotImplementedException();
        }

        public IList<Domain.Receita> GetAllReceita()
        {
            
            return Session.QueryOver<Domain.Receita>()
                    .WhereNot(x => x.IsExcluido)
                    .List();
        }

    }
}
